/**
 * Created by yang on 2016/4/28.
 */
var buf = new Buffer("www.runoob.com", "utf-8");
console.log(buf.toJSON());
//合并buffer
var buffer1 = new Buffer('菜鸟教程 ');
var buffer2 = new Buffer('www.runoob.com');
var buffer3 = Buffer.concat([buffer1,buffer2]);
console.log("buffer3 内容: " + buffer3.toString())